package jfreechart;

import java.text.DateFormat;
import java.text.NumberFormat;

import org.eclipse.swt.graphics.Color;
import org.jfree.chart.axis.DateTickUnit;
import org.jfree.chart.axis.NumberTickUnit;

public class JFreeChartConfig {

	private String[] titles;

	// 横坐标标题
	private String xLabel;

	// 纵坐标标题
	private String yLabel;

	// 坐标轴颜色
	private Color axisColor;

	// 坐标刻度颜色
	private Color axisLabelColor;

	// 网格是否可见
	private boolean isGridVisible;

	// 网格颜色
	private Color gridColor;

	// 背景色
	private Color backgroundColor;

	// 曲线颜色
	private Color lineColor;

	// 曲线的线条宽度
	private int lineWidth;

	// 横坐标刻度最大显示个数
	private int maximumItemCount;

	// 上标记值
	private double highMarkValue;

	// 上标记文本
	private String highMarkText;

	// 低标记值
	private double lowMarkValue;

	// 低标记文本
	private String lowMarkText;

	// 纵坐标最大值
	private double max;

	// 总坐标最小值
	private double min;

	// 图例是否可见
	private boolean isLegendVisible;

	// 横轴刻度间隔及横轴单位显示方式
	private DateTickUnit xDateTickUnit;

	// 纵轴刻度间隔及横轴单位显示方式
	private NumberTickUnit yNumberTickUnit;

	// 横轴单位显示方式。 注意，该变量与xDateTickUnit只需要设一个。
	private DateFormat xDateFormat;

	// 纵轴单位显示方式。 注意，该变量与yNumberTickUnit只需要设一个。
	private NumberFormat yNumberFormat;

	public DateTickUnit getxDateTickUnit() {
		return xDateTickUnit;
	}

	public void setxDateTickUnit(DateTickUnit xDateTickUnit) {
		this.xDateTickUnit = xDateTickUnit;
	}

	public NumberTickUnit getyNumberTickUnit() {
		return yNumberTickUnit;
	}

	public void setyNumberTickUnit(NumberTickUnit yNumberTickUnit) {
		this.yNumberTickUnit = yNumberTickUnit;
	}

	public DateFormat getxDateFormat() {
		return xDateFormat;
	}

	public void setxDateFormat(DateFormat xDateFormat) {
		this.xDateFormat = xDateFormat;
	}

	public NumberFormat getyNumberFormat() {
		return yNumberFormat;
	}

	public void setyNumberFormat(NumberFormat yNumberFormat) {
		this.yNumberFormat = yNumberFormat;
	}

	public double getMax() {
		return max;
	}

	public void setMax(double max) {
		this.max = max;
	}

	public double getMin() {
		return min;
	}

	public void setMin(double min) {
		this.min = min;
	}

	public double getHighMarkValue() {
		return highMarkValue;
	}

	public void setHighMarkValue(double highMarkValue) {
		this.highMarkValue = highMarkValue;
	}

	public String getHighMarkText() {
		return highMarkText;
	}

	public void setHighMarkText(String highMarkText) {
		this.highMarkText = highMarkText;
	}

	public double getLowMarkValue() {
		return lowMarkValue;
	}

	public void setLowMarkValue(double lowMarkValue) {
		this.lowMarkValue = lowMarkValue;
	}

	public String getLowMarkText() {
		return lowMarkText;
	}

	public void setLowMarkText(String lowMarkText) {
		this.lowMarkText = lowMarkText;
	}

	public int getMaximumItemCount() {
		return maximumItemCount;
	}

	public void setMaximumItemCount(int maximumItemCount) {
		this.maximumItemCount = maximumItemCount;
	}

	public int getLineWidth() {
		return lineWidth;
	}

	public void setLineWidth(int lineWidth) {
		this.lineWidth = lineWidth;
	}

	public Color getLineColor() {
		return lineColor;
	}

	public void setLineColor(Color lineColor) {
		this.lineColor = lineColor;
	}

	public String[] getTitles() {
		return titles;
	}

	public void setTitles(String[] titles) {
		this.titles = titles;
	}

	public String getxLabel() {
		return xLabel;
	}

	public void setxLabel(String xLabel) {
		this.xLabel = xLabel;
	}

	public String getyLabel() {
		return yLabel;
	}

	public void setyLabel(String yLabel) {
		this.yLabel = yLabel;
	}

	public Color getAxisColor() {
		return axisColor;
	}

	public void setAxisColor(Color axisColor) {
		this.axisColor = axisColor;
	}

	public Color getAxisLabelColor() {
		return axisLabelColor;
	}

	public void setAxisLabelColor(Color axisLabelColor) {
		this.axisLabelColor = axisLabelColor;
	}

	public boolean isGridVisible() {
		return isGridVisible;
	}

	public void setGridVisible(boolean isGridVisible) {
		this.isGridVisible = isGridVisible;
	}

	public Color getGridColor() {
		return gridColor;
	}

	public void setGridColor(Color gridColor) {
		this.gridColor = gridColor;
	}

	public Color getBackgroundColor() {
		return backgroundColor;
	}

	public void setBackgroundColor(Color backgroundColor) {
		this.backgroundColor = backgroundColor;
	}

	public boolean isLegendVisible() {
		return isLegendVisible;
	}

	public void setLegendVisible(boolean isLegendVisible) {
		this.isLegendVisible = isLegendVisible;
	}
}
